$OpenBSD: patch-addons_Clutter_CMakeLists_txt,v 1.1.1.1 2012/12/17 23:55:28 jeremy Exp $

The clutter addon appears to require some manual hacking
to add include and library paths.

--- addons/Clutter/CMakeLists.txt.orig	Tue Oct  2 22:33:45 2012
+++ addons/Clutter/CMakeLists.txt	Thu Oct 11 01:04:28 2012
@@ -25,6 +25,9 @@ if(CLUTTER_FOUND AND ATK_FOUND AND GLIB2_FOUND AND Pan
 	include_directories(${GLIB2_INCLUDE_DIRS})
 	include_directories(${Pango_1_0_INCLUDE_DIR})
 	include_directories(${CAIRO_INCLUDE_DIRS})
+	include_directories(${LOCALBASE}/include/cogl)
+	include_directories(${LOCALBASE}/include/atk-1.0)
+	include_directories(${LOCALBASE}/include/json-glib-1.0)
 
 	# Generate the IoClutterInit.c file.
 	# Argument SHOULD ALWAYS be the exact name of the addon, case is
@@ -55,7 +58,8 @@ if(CLUTTER_FOUND AND ATK_FOUND AND GLIB2_FOUND AND Pan
         ${ATK_LIBRARY}
         ${GLIB2_LIBRARIES}
         ${Pango_1_0_LIBRARIES}
-        ${CAIRO_LIBRARIES})
+        ${CAIRO_LIBRARIES}
+        -L/usr/X11R6/lib)
 
 	# Install the addon to our global addons hierarchy.
 	install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION lib/io/addons)
